package com.jic.product.service;

import java.lang.Long;
import java.util.List;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.product.entity.WarehouseProductRelation;
import com.jic.product.manage.request.WarehouseProductRelationRequest;
import com.jic.product.manage.request.WarehouseProductRelationSaveRequest;
import com.jic.product.manage.response.WarehouseProductRelationResponse;

/**
* 仓库和商品关联表
* @author :
* @email :
* @since : 2020-02-21 02:15:49
* @version : v1.0.0
*/
public interface WarehouseProductRelationService {

    long insert(WarehouseProductRelation warehouseProductRelation);

    long delete(Long id);

    long update(WarehouseProductRelationRequest warehouseProductRelationRequest);

    WarehouseProductRelation queryByPrimaryKey(Long id);

    List<WarehouseProductRelation> query(WarehouseProductRelation warehouseProductRelation);

    PageResult<WarehouseProductRelationResponse> queryPage(WarehouseProductRelation warehouseProductRelation, Page pageQuery);

    RestResult<String> saveWarehouseProductRelation(WarehouseProductRelationSaveRequest warehouseProductRelationSaveRequest);
}
